import 'package:flutter/material.dart';
import 'package:freedom_flutter_mall/views/screens/goods/goods_list_screen.dart';
import 'package:freedom_flutter_mall/views/screens/tabbar/main_tab_screens.dart';

class RouterValues {
  ///
  /// tab主页
  ///
  static const String mainTab = "/main/tab";

  ///
  /// 首页主页
  ///
  static const String home = "/home";

  ///
  /// 用户主页
  ///
  static const String profile = "/profile";

  ///
  /// 我的订单
  ///
  static const String mineOrder = "/mine/order";

  ///
  ///登录主页
  ///
  static const String loginSms = "/login";

  ///
  /// 设置
  ///
  static const String setting = "/setting";

  ///
  /// 地址
  ///
  static const String address = "/address";

  ///
  /// 设置
  ///
  static const String search = "/search";

  ///
  /// 登录
  ///
  static const String login = "/login";

  ///
  /// 商品列表
  ///
  static const String goods = "/goods";
}

class RouterPageBind {
  static Map<String, WidgetBuilder> getRouterBindList() {
    var routerPage = {
      RouterValues.mainTab: (context) => const MainTabScreens(),
      RouterValues.goods: (context) => const GoodsListScreen(),
    };
    return routerPage;
  }
}
